#!/bin/sh

ROOT=/autostop
DAEMON=$ROOT/bin/facedetector
LOGFILE=$ROOT/log/facedetector.log

case "$1" in
        start)
		echo "Starting face detector"
                start-stop-daemon -b -S -x $DAEMON
        ;;
	stop)
		echo "Stopping face detector"
		start-stop-daemon -K -x $DAEMON
	;;
        *)
                echo "usage: facedetector {start|stop}"
esac

